package com.ding.infra.feign;

import com.alibaba.fastjson2.JSONObject;
import com.ding.config.RibbonRule;
import com.ding.infra.feign.fallback.StudentServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: ding
 * @Mail: dingpeng0831@hotmail.com
 * @CreateTime: 2023-03-27  16:46
 * @Description:
 * @Version: 1.0
 */
@FeignClient(value = "consumer-02", fallback = StudentServiceFallBack.class, configuration = RibbonRule.class)
public interface StudentService {
    @GetMapping("/v1/test/mysql/r")
    ResponseEntity<JSONObject> readData();
}
